# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=8
PYTHON_COMPAT=( python3_{8..14} )
DISTUTILS_USE_PEP517=setuptools

inherit distutils-r1 git-r3

DESCRIPTION="Enter kernel namespaces from Python."
HOMEPAGE="https://github.com/zalando/python-nsenter"
EGIT_REPO_URI="mirror://github/zalando/python-nsenter.git"

LICENSE="Apache-2.0"
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
SLOT="0"
IUSE=""

DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
        dev-python/wheel[${PYTHON_USEDEP}]
        dev-python/pip[${PYTHON_USEDEP}]
        dev-python/flake8[${PYTHON_USEDEP}]
        dev-python/contextlib2[${PYTHON_USEDEP}]"
RDEPEND=""

src_prepare() {
	default
	sed -i "/entry_points/d" setup.py	# do not install /usr/bin/nsenter
}
